//
//  main.m
//  类别
//
//  Created by mir_yan on 2018/9/30.
//  Copyright © 2018年 hakeem. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
#import "Person+Run.h"
#import "NSObject+Work.h"
#import "NSString+coder.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        
        Person * p = [[Person alloc] init];
        p.age = 10;
        [p eat];
        [p run];
        // 类别可以继承
        
        [@"" work];
        // NSObject 不建议加类别
        
        NSString* string = @"hone";
        NSString* password = [string encrypt];
        
        NSLog(@"%@", password);
    }
    return 0;
}
